package com.vf.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vf.user.mapper.NoShowComplaintsMapper;
import com.vf.user.domain.NoShowComplaints;
import com.vf.user.service.INoShowComplaintsService;

/**
 * 爽约投诉Service业务层处理
 * 
 * @author LBS
 * @date 2025-06-04
 */
@Service
public class NoShowComplaintsServiceImpl implements INoShowComplaintsService 
{
    @Autowired
    private NoShowComplaintsMapper noShowComplaintsMapper;

    /**
     * 查询爽约投诉
     * 
     * @param complaintId 爽约投诉主键
     * @return 爽约投诉
     */
    @Override
    public NoShowComplaints selectNoShowComplaintsByComplaintId(Long complaintId)
    {
        return noShowComplaintsMapper.selectNoShowComplaintsByComplaintId(complaintId);
    }

    /**
     * 查询爽约投诉列表
     * 
     * @param noShowComplaints 爽约投诉
     * @return 爽约投诉
     */
    @Override
    public List<NoShowComplaints> selectNoShowComplaintsList(NoShowComplaints noShowComplaints)
    {
        return noShowComplaintsMapper.selectNoShowComplaintsList(noShowComplaints);
    }

    /**
     * 新增爽约投诉
     * 
     * @param noShowComplaints 爽约投诉
     * @return 结果
     */
    @Override
    public int insertNoShowComplaints(NoShowComplaints noShowComplaints)
    {
        return noShowComplaintsMapper.insertNoShowComplaints(noShowComplaints);
    }

    /**
     * 修改爽约投诉
     * 
     * @param noShowComplaints 爽约投诉
     * @return 结果
     */
    @Override
    public int updateNoShowComplaints(NoShowComplaints noShowComplaints)
    {
        return noShowComplaintsMapper.updateNoShowComplaints(noShowComplaints);
    }

    /**
     * 批量删除爽约投诉
     * 
     * @param complaintIds 需要删除的爽约投诉主键
     * @return 结果
     */
    @Override
    public int deleteNoShowComplaintsByComplaintIds(Long[] complaintIds)
    {
        return noShowComplaintsMapper.deleteNoShowComplaintsByComplaintIds(complaintIds);
    }

    /**
     * 删除爽约投诉信息
     * 
     * @param complaintId 爽约投诉主键
     * @return 结果
     */
    @Override
    public int deleteNoShowComplaintsByComplaintId(Long complaintId)
    {
        return noShowComplaintsMapper.deleteNoShowComplaintsByComplaintId(complaintId);
    }
}
